package com.lskj.shiro.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lskj.shiro.entity.SysUser;
import com.lskj.shiro.mapper.SysUserMapper;
import com.lskj.shiro.service.ISysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author zzq
 * @Date 2020/3/31 12:33
 * @Version 1.0
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {
    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser getUserByUserName(String userName) {
        return sysUserMapper.selectUserByName(userName);
    }
}
